package com.bootdo.mall.service;

import com.bootdo.common.utils.R;
import com.bootdo.mall.domain.MallOrder;

import java.util.List;
import java.util.Map;
import com.bootdo.mall.dao.MallOrderDao;

import javax.servlet.http.HttpServletRequest;

/**
 * 订单记录
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-25 16:19:11
 */
public interface MallOrderService extends MallOrderDao{
/**
	MallOrder get(Long id);
	
	List<MallOrder> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(MallOrder mallOrder);
	
	int update(MallOrder mallOrder);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids); */


	public R createOrderFunction(Long memberId, Long roomId, Map map, HttpServletRequest request);


	public R quxiaoOrderFunction(Long id,Integer newStatus,Integer oldStatus);



	public boolean saveOrderByWx(List<MallOrder> orders);

	public boolean saveOrderByJiFen(List<MallOrder> orders);



	public boolean orderPayOk(String orderNo,String wxPayOkOrderNo);



	public String delOrder(String orderNo);



	/**
	 * 退货单商品退货
	 * @param orderLogId
	 * @return
	 */
	public String tuiHuoByOrderLogId(Long orderLogId,Integer num);



	/**
	 * 退货-单订单退货
	 * @return
	 */
	public String tuiHuoByOrderId(String orderId);




	/**
	 * 订单确认收货 返还积分
	 * @param   list
	 * @return
	 */
	public String overOrderByOrderId(List<MallOrder> list);

}
